<?php

/**
 * AcreditacionEntero form.
 *
 * @package    BecArTe
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class AcreditacionEnteroForm extends BaseAcreditacionEnteroForm
{
  /**
   * @see AcreditacionForm
   */
  public function configure()
  {
    parent::configure();
  }
  
  protected function getUsefullFields()
  {
    return array_merge(parent::getUsefullFields(), array('valorEntero') );
  }
  
  protected function setupInheritance()
  {
    parent::setupInheritance();
    $this->configurarWidget('valorEntero');
    $this->validatorSchema['valorEntero'] =  new sfValidatorInteger(array('required' => false));
  }
  
  public function estaVacio()
  {
    return 0 == ($this->isbound() ? $this->getValue('valorEntero') : $this->getObject()->getValorEntero() ) ;
  }
}
